package com.ibeeking.found.msg.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName RecordDO
 * @Description
 * @Author ibeeking
 * @Date 2020-12-10 10:34
 **/
@Data
@TableName("sms_record")
public class SmsRecordDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Integer tenantId;

    /**
     * 消息方式
     */
    @TableField(value = "msg_ways")
    private Integer msgWays;

    /**
     * 消息类型id
     */
    @TableField(value = "msg_type_id")
    private Long msgTypeId;

    /**
     * 消息数量
     */
    @TableField(value = "msg_count")
    private Integer msgCount;

    /**
     * 消息接收人
     */
    @TableField(value = "msg_receiver")
    private String msgReceiver;

    /**
     * 消息请求体
     */
    @TableField(value = "msg_request_body")
    private String msgRequestBody;

    /**
     * 消息响应体
     */
    @TableField(value = "msg_response_body")
    private String msgResponseBody;

    /**
     * 消息状态，1-成功，0-失败
     */
    @TableField(value = "msg_status")
    private Integer msgStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;
}
